Skip to content

chore: flatten pom, add licences to jar#1806

Merged
toddbaert merged 1 commit into
mainfrom
fix/pom-flattening
Jun 5, 2026
Merged

chore: flatten pom, add licences to jar#1806
toddbaert merged 1 commit into
mainfrom
fix/pom-flattening

Conversation

@toddbaert

Copy link
Copy Markdown
Member

Published pom hygiene improvements, and fix missing licence in jars:

  • use flatten-maven-plugin and maven-resources-plugin
  • in-lines elements from parent
  • removes test/publish deps from published pom
  • packages license into jar

Fixes: #1784

@toddbaert toddbaert requested a review from a team as a code owner June 4, 2026 18:10
@toddbaert toddbaert changed the title fix: flatten pom, add licences to jar chore: flatten pom, add licences to jar Jun 4, 2026
* use flatten-maven-plugin and maven-resources-plugin
* in-lines elements from parent
* removes test/publish deps from published pom
* packages license into jar

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the project configuration by ignoring .flattened-pom.xml in .gitignore, marking compile-time dependencies (lombok and spotbugs) as optional, and adding plugins to flatten the deployed POM and bundle the root LICENSE file into published JARs. The review feedback highlights two issues: first, using ${maven.multiModuleProjectDirectory} requires a .mvn directory at the root of the repository to resolve correctly when building from submodules; second, the maven-resources-plugin will execute unnecessarily for the parent POM (which has pom packaging), creating an empty target/classes/META-INF directory, and should be configured to skip execution on the parent.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pom.xml
Comment thread pom.xml
@toddbaert toddbaert force-pushed the fix/pom-flattening branch from 44878e3 to 13ba8a5 Compare June 4, 2026 18:11
@toddbaert toddbaert merged commit 322836e into main Jun 5, 2026
5 checks passed
@toddbaert toddbaert deleted the fix/pom-flattening branch June 5, 2026 13:18
@Kielek

Kielek commented Jun 23, 2026

Copy link
Copy Markdown

@toddbaert, is there any chance to make a release after this changes? It will be great to make the legal scanning happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dev.openfeature.contrib.providers:flagd Maven artifacts are reported as unlicensed by FOSSA

4 participants